package com.example.tests;

import org.testng.annotations.Test;


public class SignUpTests extends TestBase{
		
	  @Test
	  public void testSignUpNonRegisteredUser() throws Exception {
		openMainPage();
	    openSingUpForm();
	    SignUpData signUpCredentials = new SignUpData();
	    signUpCredentials.fullName = "Tanya Test";
	    signUpCredentials.email = "100010@mail.ru";
	    signUpCredentials.password = "1111";
	    signUpCredentials.advertisement = "Other";
	    fillSignUpForm(signUpCredentials);
		
	    submitSignUpInfo();
	    verificationSignUp();  
	    logOutFromSite();
	  }
	
	  @Test
	  public void testSignUpRegisteredUser() throws Exception {
		openMainPage();
	    openSingUpForm();
	    SignUpData signUpCredentials = new SignUpData();
	    signUpCredentials.fullName = "Tanya Test";
	    signUpCredentials.email = "100010@mail.ru";
	    signUpCredentials.password = "1111";
	    signUpCredentials.advertisement = "Other";
	    fillSignUpForm(signUpCredentials);
	    submitSignUpInfo();
	    verificationIncorrectSignUp();  
	  }
}

